package com.yellowpage.omc.datacollect.dao;

import java.util.List;

import com.yellowpage.white.dao.BaseDaoHibernateImpl;

import com.yellowpage.ca.data.User;
import com.yellowpage.omc.datacollect.data.DataVerify;

public class DataVerifyDaoImpl extends BaseDaoHibernateImpl<DataVerify, Long> implements DataVerifyDao {

	public DataVerifyDaoImpl() {
		super(DataVerify.class);
	}		
	
	
	
	public DataVerify getDataVerifyByCollectId(String dataCollectId) {
		String queryString = "from DataVerify u where u.dataCollectId = " + dataCollectId ;
		List dataVerifyList = getHibernateTemplate().find(queryString);
		if (dataVerifyList.size() > 0) {
			return (DataVerify)dataVerifyList.get(0);
		}
		return null;
	}
		

}	